package com.lightsaber.trade.as.entity.dataimport;

import java.io.File;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.lightsaber.trade.core.entity.BaseEntity;

@Entity
@Table(name = "MHPP_DATAIMPORT_JOB")
public class Dataimport extends BaseEntity {

    private static final long serialVersionUID = -6360986547982446937L;

    @Transient
    private File file;
    @Transient
    private String fileContentType;
    @Transient
    private String fileFileName;

    @Column(name = "JOB_NAME", nullable = false)
    private String jobName;

    @Column(name = "INTERFACE_TYPE", nullable = false)
    private String interfaceType;

    @Column(name = "INTERFACE_FILE_PATH", nullable = true)
    private String interfaceFilePath;

    @Column(name = "RUN_AT", nullable = true)
    private Date runAt;

    @Column(name = "COMPLETION_TIME", nullable = true)
    private Date completionTime;

    @Column(name = "STATUS", nullable = false)
    private DataimportStatus status;

    @Column(name = "REMARK", nullable = true)
    private String remark;

    @Column(name = "EVENTS_ID", nullable = true)
    private int eventsId;

    public String getJobName() {
        return jobName;
    }

    public void setJobName(final String jobName) {
        this.jobName = jobName;
    }

    public String getInterfaceType() {
        return interfaceType;
    }

    public void setInterfaceType(final String interfaceType) {
        this.interfaceType = interfaceType;
    }

    public Date getRunAt() {
        return runAt;
    }

    public void setRunAt(final Date runAt) {
        this.runAt = runAt;
    }

    public Date getCompletionTime() {
        return completionTime;
    }

    public void setCompletionTime(final Date completionTime) {
        this.completionTime = completionTime;
    }

    public DataimportStatus getStatus() {
        return status;
    }

    public void setStatus(final DataimportStatus status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(final String remark) {
        this.remark = remark;
    }

    /* file upload */
    public File getFile() {
        return file;
    }

    public void setFile(final File file) {
        this.file = file;
    }

    public String getFileContentType() {
        return fileContentType;
    }

    public void setFileContentType(final String fileContentType) {
        this.fileContentType = fileContentType;
    }

    public String getFileFileName() {
        return fileFileName;
    }

    public void setFileFileName(final String fileFileName) {
        this.fileFileName = fileFileName;
    }

    public String getInterfaceFilePath() {
        return interfaceFilePath;
    }

    public void setInterfaceFilePath(final String interfaceFilePath) {
        this.interfaceFilePath = interfaceFilePath;
    }

    public int getEventsId() {
        return eventsId;
    }

    public void setEventsId(final int eventsId) {
        this.eventsId = eventsId;
    }

}
